home *** CD-ROM | disk | FTP | other *** search
/ Sesame Street - Season 38 Press Kit / Sesame Street - Season 38 Press Kit CD-ROM.iso / mac.swf / scripts / frame_154 / DoAction.as
Encoding:
Text File  |  2007-06-07  |  983 b   |  37 lines

  1. function reset()
  2. {
  3.    topBubble.tween("_x",260,1,"easeInOutBack",0.5);
  4.    browseBtn.scaleTo(100,0,"linear",2);
  5.    browseBtn.tween(["_y","_x"],[126,283],0,"linear",2);
  6.    downloadBtn.scaleTo(100,0,"linear",2);
  7.    downloadBtn.tween(["_y","_x"],[268,347],0,"linear",2);
  8.    cover0.tween(["_y","_x"],[223,284],0,"linear",2);
  9.    cover1.tween(["_y","_x"],[343,510],0,"linear",2);
  10.    grab.alphaTo(0,0.5,"linear",0.5);
  11.    this.onEnterFrame = function()
  12.    {
  13.       if(grab._alpha < 0.5)
  14.       {
  15.          gotoAndPlay(1);
  16.          delete this.onEnterFrame;
  17.       }
  18.    };
  19. }
  20. stop();
  21. i = 0;
  22. while(i <= 1)
  23. {
  24.    tg = 0.2 * i;
  25.    this["cover" + i].scaleTo(0,0.5,"linear",tg);
  26.    i++;
  27. }
  28. removeMovieClip("leftWordCage");
  29. removeMovieClip("rightWordCage");
  30. topBubble.masker.scaleTo(0,0.4,ease);
  31. browseBtn.masker.scaleTo(0,0.4,ease);
  32. downloadBtn.masker.scaleTo(0,0.4,ease);
  33. delete browseBtn.onEnterFrame;
  34. browseBtn.enabled = false;
  35. downloadBtn.enabled = false;
  36. reset();
  37.